<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css"/>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="//unpkg.com/vue/dist/vue.js"></script>
    <script src="//unpkg.com/element-ui@2.15.5/lib/index.js"></script>

</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img src="http://qww6f9ye6.hd-bkt.clouddn.com/widget-program01.png"
                     width="100%" height="100%"/>
            </div>
            <div class="project-text">
                <h4 class="tit">体验套餐:{{mealname}}</h4>
                <hr>
                <p class="subtit">
                    体检人：{{username}}
                </p>
                <p class="subtit">
                    体检时间：{{orderDate}}
                </p>

            </div>
        </div>
        <div class="table-listbox">
            <div class="box-title">
                <i class="icon-zhen"><span class="path1"></span><span class="path2"></span></i>
                <span>健康师建议及治疗方案</span>
            </div>
            <div class="box-table">
                <div class="table-content">
                    <ul class="table-list">
                        <li class="table-item">
                            <div class="item flex2"><h2>体检报告:</h2></div>

                            <div class="item flex3">

                                <label>
                                    <h2>{{this.examreport}}</h2>
                                </label>
                            </div>

                        </li>

                        <li class="table-item">
                            <div class="item flex2"><h2>健康师意见:</h2></div>

                            <div class="item flex3">

                                <label>
                                    <h2>{{this.suggest}}</h2>
                                </label>
                            </div>

                        </li>

                        <li class="table-item">
                            <div class="item flex2"><h2>建议运动</h2></div>

                            <div class="item flex3">

                                <label>
                                    <h2>{{this.motionassociation}}</h2>
                                </label>
                            </div>

                        </li>

                        <li class="table-item">
                            <div class="item flex2"><h2>建议膳食</h2></div>

                            <div class="item flex3">

                                <label>
                                    <h2>{{this.dieassociation}}</h2>
                                </label>
                            </div>

                        </li>
                        <li class="table-item">
                            <div class="item flex2"><h2>建议药物</h2></div>

                            <div class="item flex3">

                                <label>
                                    <h2>{{drugassociation}}</h2>
                                </label>
                            </div>

                        </li>
                    </ul>
                </div>

                <div class="box-button">
                    <a @click="toRemark()" class="order-btn">去点评一下吧</a>

                    <!--<el-rate
                            v-model="value"
                            show-text>
                    </el-rate>-->
                </div>


            </div>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el:'#app',
        data:{

            formData:{},//表单数据
            motionassociation:'',
            dieassociation:'',
            drugassociation:'',
            examreport:'',
            suggest:'',


            mealname:"",//套餐名称
            username:"",//使用id
            orderDate:'',//体检世间

        },
        mounted (){
            this.find();
        },
        methods: {
            find(){
                //获取健康干涉数据
                axios.post("/intervention/getIntervention.do").then((response) => {
                    //为模型数据赋值，基于VUE的双向绑定展示到页面
                    this.motionassociation = response.data.data.motionassociation;
                    this.dieassociation = response.data.data.dieassociation;
                    this.drugassociation = response.data.data.drugassociation;
                    this.examreport = response.data.data.examreport;
                    this.suggest = response.data.data.suggest;


                });

                axios.post("/intervention/findById.do?memberId="+97).then((response) => {
                    this.username=response.data.data.member;
                    this.mealname = response.data.data.setmeal;
                    this.orderDate = response.data.data.orderDate;
                })

            },


        },


    });

</script>
</body>